package com.czk.ioc.factorybean;

import com.czk.Student;
import org.springframework.beans.factory.FactoryBean;

/**
 * @Author:ChenZhangKun
 * @Date: 2020/11/22 13:45
 */
public class MyBean implements FactoryBean<Student> {
    @Override
    public Student getObject() throws Exception {
        Student student=new Student("czk",5);
        return student;
    }

    @Override
    public Class<?> getObjectType() {
        return null;
    }
}
